package sv.gob.mtps.hr.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import sv.gob.mtps.hr.dao.RegistroExpedienteDAO;
import sv.gob.mtps.hr.dao.RegistroPersonalDAO;
import sv.gob.mtps.hr.model.CatEstadoEmpleado;
import sv.gob.mtps.hr.model.CatEstadocivil;
import sv.gob.mtps.hr.model.CatGenero;
import sv.gob.mtps.hr.model.CatNacionalidad;
import sv.gob.mtps.hr.model.DepMunVw;
import sv.gob.mtps.hr.model.SferhEmpleado;
import sv.gob.mtps.hr.model.SferhExpediente;
import sv.gob.mtps.hr.service.RegistroPersonalService;


@Service
public class RegistroExpedienteServiceImpl implements RegistroExpedienteService{

	@Autowired 
	private RegistroExpedienteDAO registroExpedienteDAO;

	@Transactional
	public void addSferhExpediente(SferhExpediente SferhExpediente) {
		// TODO Auto-generated method stub
		registroExpedienteDAO.addSferhExpediente(SferhExpediente);
	}

	@Transactional
	public void editSferhExpediente(SferhExpediente SferhExpediente) {
		// TODO Auto-generated method stub
		registroExpedienteDAO.editSferhExpediente(SferhExpediente);
	}

	@Transactional
	public List<SferhExpediente> listSferhExpediente() {
		// TODO Auto-generated method stub
		return registroExpedienteDAO.listSferhExpediente();
	}

	@Transactional
	public void removeSferhExpediente(Integer id) {
		// TODO Auto-generated method stub
		registroExpedienteDAO.removeSferhExpediente(id);
	}

	@Transactional
	public SferhExpediente findSferhExpediente(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Transactional
	public List<SferhExpediente> listSferhExpediente(int id) {
		// TODO Auto-generated method stub
		return registroExpedienteDAO.listSferhExpediente(id);
	}
	
	

	
}
